package com.atguigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * ClassName:Address
 * Package:com.atguigu.pojo
 * Description:
 *
 * @Author 应永豪
 * @Create 2024/4/21 16:37
 * @Version 1.0
 */
@Data
@TableName("address")
public class Address implements Serializable {
    public static final Long serialVersionUID=1L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    @NotBlank
    private String linkman;
    @NotBlank
    private String phone;
    @NotBlank
    private String address;
    @TableField("user_id")
    private Integer userId;
}
